package com.lagou.order.feign;

import com.lagou.common.pojo.Goods;
import org.springframework.stereotype.Component;

import java.util.ArrayList;
import java.util.List;

@Component
public class GoodsFeignFallBack implements GoodsFeign{
    @Override
    public Goods queryById(Integer id) {
        return new Goods();
    }

    @Override
    public int updateById(Goods goods) {
        return 0;
    }

    @Override
    public int deleteById(Integer id) {
        return 0;
    }

    @Override
    public List<Goods> queryAll() {
        List<Goods> list = new ArrayList<>();
        System.out.println("触发熔断");
        return list;
    }
}
